﻿<Window x:Class="CapstoneProjectAEReader.GUIs.SyncAuthGUI"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Icon="pack://application:,,,/GoogleDrive.ico" Height="200"
        Width="400">
    <Grid>
        <Grid.Background>
            <RadialGradientBrush GradientOrigin="0.5,0.5">
                <GradientStop Color="AliceBlue" Offset="0.0" />
                <GradientStop Color="SkyBlue" Offset="1.0" />
            </RadialGradientBrush>
        </Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto" />
            <RowDefinition Height="auto" />
            <RowDefinition Height="auto" />
            <RowDefinition Height="auto" />
        </Grid.RowDefinitions>
        <Label x:Name="lbAuthen" Grid.Row="0" FontSize="14" Margin="8,8,8,4" />
        <TextBox x:Name="authCode" Height="30" Grid.Row="1" TextWrapping="Wrap" FontSize="14" Margin="8,0,8,4" />
        <Label x:Name="errorMessage" Grid.Row="2" Foreground="Red" FontSize="14" Height="28" Margin="8,4,8,4"
               HorizontalAlignment="Center" />
        <StackPanel Orientation="Horizontal" Grid.Row="3" HorizontalAlignment="Center" Margin="8,8,8,8">
            <Button x:Name="Ok_Button" Background="Transparent" BorderThickness="0" Margin="4" FontSize="14"
                    Click="Ok_Button_Click">
                <Grid>
                    <Image Height="26">
                        <Image.Style>
                            <Style TargetType="{x:Type Image}">
                                <Setter Property="Source" Value="Image/Button.png" />
                                <Style.Triggers>
                                    <DataTrigger Binding="{Binding IsMouseOver, ElementName=Ok_Button}" Value="True">
                                        <Setter Property="Source" Value="Image/ButtonHover.png" />
                                    </DataTrigger>
                                </Style.Triggers>
                            </Style>
                        </Image.Style>
                    </Image>
                    <Label Content="OK" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14" />
                </Grid>
            </Button>
            <Button x:Name="Cancel_Button" Background="Transparent" BorderThickness="0" Margin="4" FontSize="14"
                    Click="Cancel_Button_Click">
                <Grid>
                    <Image Height="26">
                        <Image.Style>
                            <Style TargetType="{x:Type Image}">
                                <Setter Property="Source" Value="Image/Button.png" />
                                <Style.Triggers>
                                    <DataTrigger Binding="{Binding IsMouseOver, ElementName=Cancel_Button}"
                                                 Value="True">
                                        <Setter Property="Source" Value="Image/ButtonHover.png" />
                                    </DataTrigger>
                                </Style.Triggers>
                            </Style>
                        </Image.Style>
                    </Image>
                    <Label Content="Cancel" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14" />
                </Grid>
            </Button>
        </StackPanel>
    </Grid>
</Window>